﻿<UserControl x:Class="CAION2.Views.SettingsRecepture_Page"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:resources="clr-namespace:CAION2.Properties" 
             xmlns:viewModels="clr-namespace:CAION2.ViewModels"
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit">

    <UserControl.Resources>
        <viewModels:SettingsViewModel x:Key="ViewModels"/>
    </UserControl.Resources>

    <Grid DataContext="{Binding Source={StaticResource ViewModels}}">
        <ScrollViewer>
            <StackPanel MinWidth="150">
                <TextBlock Text="{x:Static resources:Resources.RR_ReceptureTitle}" 
                           Style="{StaticResource Heading2}" 
                           Margin="0,0,0,8" />

                <Grid HorizontalAlignment="Left">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition MinWidth="120"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>

                    <TextBlock Text="{x:Static resources:Resources.Settings_MaxDeepLevel}" 
                               VerticalAlignment="Center" 
                               TextWrapping="Wrap"
                               Margin="0,0,16,4" />

                    <xctk:IntegerUpDown Value="{Binding MaxDeepLevel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                        Maximum="99"
                                        Minimum="1"
                                        Grid.Row="0" 
                                        Grid.Column="1"
                                        Width="50"
                                        Height="20"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>

                    <TextBlock Grid.Row="1" 
                               Grid.Column="0" 
                               TextWrapping="Wrap"
                               Text="{x:Static resources:Resources.Settings_MaxDeepLevelForMulti}" 
                               VerticalAlignment="Center" 
                               Margin="0,0,16,4" />

                    <xctk:IntegerUpDown Value="{Binding MaxDeepLevelForMulti, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                        Maximum="99"
                                        Minimum="1"
                                        Grid.Row="1" 
                                        Grid.Column="1"
                                        Width="50"
                                        Height="20"
                                        HorizontalAlignment="Center"
                                        VerticalAlignment="Center"/>
                    
                </Grid>

            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
